<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>chunk demo</title>
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script> -->
    <script src="lodash.min.js"></script>
    <script src="../helpers/bing.js"></script>
  </head>
  <body>
    <script>
      // 帮我写一个 chunk 的demo
      const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
      const chunked = _.chunk(arr, 3);
      console.log(chunked);
      // [Array(3), Array(3), Array(3), Array(1)]
    </script>
  </body>
</html>
